package com.hllxd.hism.star.basic.service.dao.mapper.mis;

import com.hllxd.hism.star.basic.service.model.alarm.AlarmRule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wuguangxi
 * @description
 * @date 2023/11/14 16:45
 **/
@Mapper
public interface AlarmRuleMapper {

    /**
     * 根据规则id查询
     * @param ruleId
     * @return
     */
    AlarmRule findByRuleId(@Param("ruleId") Integer ruleId);

    /**
     * 根据名称、维度、删除状态查询
     * @param name
     * @param dimValue
     * @param deleted
     * @return
     */
    List<AlarmRule> findByNameAndDimValueAndDeleted(@Param("name") String name, @Param("dimValue") String dimValue, @Param("deleted") String deleted);

}
